# Contributor: Jakub Panek <me@panekj.dev>
# Maintainer: Jakub Panek <me@panekj.dev>
pkgname=lite-xl
pkgver=2.0.5
pkgrel=0
pkgdesc="Lightweight text editor written in Lua"
url="https://lite-xl.github.io"
arch="all"
license="MIT"
makedepends="
	agg-dev
	cmake
	freetype-dev
	lua5.2-dev
	meson
	pcre2-dev
	reproc-dev
	sdl2-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/lite-xl/lite-xl/archive/v$pkgver/lite-xl-$pkgver.tar.gz"
options="!check" # no tests available

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
ead8ab036f60d98dc495d318e14a5c473333d897e88a37d09f543dfd2b76eacf206447b5a6e132acaa267431655b8275eb9dfddbbfdf9561cb3bcdbe1eff2057  lite-xl-2.0.5.tar.gz
"
